To use this command, drop the "inc" file into your nShell "bin" directory.
Description
===========
NAME
inc - Increment a variable
SYNOPSIS
inc variable [offset]
DESCRIPTION
This command will add an offset to a numeric variable:
variable = variable + offset
RETURN CODES
<0 Error
0 Success
Note
====
In normal usage, the variable name should not have a leading '$'. Remember that "$name" forces an immediate interpretation, so that given:
set foo 5
set bar foo
The command "inc foo" would increment the value of "foo" to 6. The command "inc $bar" would accomplish the same thing, by first interpreting "$bar" to mean "foo" and then incrementing the contents of "foo".